package io.xxx.mario.task;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PushDetailMapper extends BaseMapper<PushDetail> {

    void insertAll(@Param("list") List<PushDetail> list);

    boolean exists(@Param("taskId") Long taskId,
                   @Param("receiverType") ReceiverType receiverType,
                   @Param("receiverId") Long receiverId,
                   @Param("messageId") Long messageId);
}
